from sqlalchemy import create_engine
import pandas as pd
import numpy as np
import tushare as ts
from datetime import datetime
from datetime import timedelta
from tqdm.notebook import tqdm
import statsmodels.api as sm
from statsmodels.regression.rolling import RollingOLS
from utils import get_codes,get_index_close,get_data_by_sql,get_pivot_data,halflife_weighting
import time

token = 'd942e6ff0e981f76aaa544f84405583e0c2129a8c82213637835a099'
pro = ts.pro_api(token)

